Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Move git-hooks #306

Merged
merged 1 commit into from
Aug 26, 2023
Merged

Move git-hooks #306

merged 1 commit into from
Aug 26, 2023

Conversation

Chemaclass
Copy link
Member

📚 Description

Keeping git-hooks inside the .github/ is a bit confusing, because it has nothing to do with github. Therefore, a more suitable folder name like tools/ is more appropriate

🔖 Changes

  • Move git-hooks from .github/ to tools/

@Chemaclass Chemaclass added the refactoring Refactoring or cleaning related label Aug 25, 2023
@Chemaclass Chemaclass self-assigned this Aug 25, 2023
Copy link
Member

@JesusValera JesusValera left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Honestly, I am not completely happy creating a tools folder.

It was like that in the past and we decided to put the init.sh inside the github folder to simplify the root, although, the github folder is not the best place as you mentioned, and I don't have other ideas at the moment, so, let's try for now with the tools folder again 👍🏼

@@ -5,8 +5,7 @@ set -e
function setup_git_hooks()
{
echo "Initialising git hooks..."
ln -sf "$PWD/.github/git-hooks/pre-commit.sh" "$PWD/.git/hooks/pre-commit"
chmod +x "$PWD/.git/hooks/pre-commit"

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It's not necessary anymore to make the script executable? @Chemaclass 🧐

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Jap, it's not needed, because I made the committed file itself executable.

@Chemaclass Chemaclass merged commit d9786c0 into main Aug 26, 2023
12 checks passed
@Chemaclass Chemaclass deleted the move-git-hooks branch August 26, 2023 18:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
refactoring Refactoring or cleaning related
Development

Successfully merging this pull request may close these issues.

4 participants